<?php

namespace ApplicationsModule\PeopleModule;

use \ApplicationsModule\PeopleModule\Person;

/**
 * Contact service describes how every contact service 
 * in the people application should look like. Every
 * method in this interface is implemented by DummyContactService
 * as NOT_PROVIDED and further extened by specific
 * contact service.
 * 
 * @author pavel
 */
interface IContactService {

    static function getServiceName();
    
    static function providedRows();

    // optional methods


    static function providesMail();

    function addMail($person_id, $mail_address);

    function getMail($person_id);

    function search($name);

    function onCreatePerson(Person $person);
}
